﻿using System;
namespace JSShop.Model
{
    /// <summary>
    /// Hishop_OrderItems:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class Hishop_OrderItems
    {
        public Hishop_OrderItems()
        { }
        #region Model
        private string _orderid;
        private string _skuid;
        private int _productid;
        private string _sku;
        private int _quantity;
        private int _shipmentquantity;
        private decimal _costprice;
        private decimal _itemlistprice;
        private decimal _itemadjustedprice;
        private string _itemdescription;
        private string _thumbnailsurl;
        private decimal? _weight;
        private string _skucontent;
        private int? _promotionid;
        private string _promotionname;
        /// <summary>
        /// 
        /// </summary>
        public string OrderId
        {
            set { _orderid = value; }
            get { return _orderid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string SkuId
        {
            set { _skuid = value; }
            get { return _skuid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int ProductId
        {
            set { _productid = value; }
            get { return _productid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string SKU
        {
            set { _sku = value; }
            get { return _sku; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int Quantity
        {
            set { _quantity = value; }
            get { return _quantity; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int ShipmentQuantity
        {
            set { _shipmentquantity = value; }
            get { return _shipmentquantity; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal CostPrice
        {
            set { _costprice = value; }
            get { return _costprice; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal ItemListPrice
        {
            set { _itemlistprice = value; }
            get { return _itemlistprice; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal ItemAdjustedPrice
        {
            set { _itemadjustedprice = value; }
            get { return _itemadjustedprice; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ItemDescription
        {
            set { _itemdescription = value; }
            get { return _itemdescription; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ThumbnailsUrl
        {
            set { _thumbnailsurl = value; }
            get { return _thumbnailsurl; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal? Weight
        {
            set { _weight = value; }
            get { return _weight; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string SKUContent
        {
            set { _skucontent = value; }
            get { return _skucontent; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? PromotionId
        {
            set { _promotionid = value; }
            get { return _promotionid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string PromotionName
        {
            set { _promotionname = value; }
            get { return _promotionname; }
        }
        #endregion Model

        public decimal GetSubTotal()
        {
            return (this.ItemAdjustedPrice * this.Quantity);
        }
    }
}

